
#include <stdio.h>
void Maopao_px(int arr[], int sn)
{
	int i = 0;
	for (i = 0; i < sn-1; i++)
	{
		int folat = 1;
        for (int j = 0; j < sn-1; j++)
		{	
			if (arr[j] > arr[j + 1])
			{
				int temp = 0;
				temp = arr[j + 1];
				arr[j+1] = arr[j];
				arr[j] = temp;
				folat = 0;
			}
		}
		if(folat = 0)
		{
			break;

		}
	}
}
int main()
{
	int arr[10] = { 6,4,1,2,3,5,7,9,8,10};
	int sn = sizeof(arr) / sizeof(arr[0]);
	Maopao_px (arr,sn);
	for (int i = 0; i < sn; i++)
	{
		printf("%d ", arr[i]);
	}

	return 0;

}